/* 知识产权管理模块样式 */

/* 专利表格容器样式 */
.patent-table-container {
  height: 5600px; /* 表格高度 + 分页器高度 + 边距 */
  overflow: hidden;
  position: relative;
}

.patent-table-container .ant-table-wrapper {
  height: 100%;
}

.patent-table-container .ant-spin-nested-loading,
.patent-table-container .ant-spin-container,
.patent-table-container .ant-table {
  height: 100%;
}

.patent-table-container .ant-table-body {
  /* 留出分页器的空间 */
  height: calc(100% - 60px) !important;
  overflow-y: auto !important;
}

/* 确保每行高度一致 */
.custom-table-row {
  height: 40px;
  line-height: 40px;
}

/* 表格行高自适应样式 */
.custom-table-row td {
  white-space: normal !important;
  word-break: break-word;
  vertical-align: top;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: 1.5;
}

/* 表格单元格省略文本时的提示样式 */
.ant-table-cell-ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* 表格整体自适应高度，固定总高度 */
.ant-table-wrapper .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-body {
  height: calc(100vh - 320px) !important;
  overflow-y: auto !important;
}

/* 确保表格在容器内正确显示 */
.patent-table-container .ant-table-wrapper,
.patent-table-container .ant-spin-nested-loading,
.patent-table-container .ant-spin-container {
  height: 100%;
}

/* 优化长文本内容的显示 */
.ant-table-cell .ant-tooltip-open {
  display: inline-block;
  max-width: 100%;
} 